const result = Promise.all([
  new Promise((resolve, reject) => {
    setTimeout(() => {
      // resolve('promise1111')
      reject('error1111')
    }, 1000)
  }),
  new Promise((resolve, reject) => {
    setTimeout(() => {
      // resolve('promise2222')
      reject('error2222')
    }, 2000)
  }),
  new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve('promise3333')
    }, 3000)
  })
])

console.log(result);
result.then(res => {
  console.log('成功:', res);
}).catch(err => {
  console.error('失败:', err);
})
